A dead key is a special kind of modifier key on a mechanical typewriter, or computer keyboard, that is typically used to attach a specific diacritic to a base letter. The dead key does not generate a (complete) grapheme by itself, but modifies the character generated by the key struck immediately after. Thus, a dedicated key is not needed for each possible combination of a diacritic and a letter, but rather only one dead key for each diacritic is needed, in addition to the normal base letter keys.
For example, if a keyboard mapping (such as US international) has a dead key for the
/ref>
Usually, the diacritic itself can be generated as a free-standing character by pressing the dead key followed by space; so a caret (free-standing circumflex) can be typed by pressing and then .
Note that with mechanical keyboards, the acute accent could be followed by any character, to create new combinations such as q with acute accent.
Computers, however, work differently. The dead key temporarily changes the keyboard layout for the next keystroke, which activates a special keyboard mode rather than actually generating a modifier character. Instead of the normal letter, a precomposed variant, with the appropriate diacritic, is generated. Each combination of a diacritic and a base letter must be specified in the character set and must be supported by the computer font in use.
There is no precomposed character to combine the acute accent with the letter , striking and then is likely to result in , with the accent and letter as separate characters. However, in most systems, the invalid typing sequence may be discarded.
Chaining dead keys allows for Compose key emulation by simply using the dead key feature. This may be performed either with proprietary keyboard editing software, or with driver development kits.
In the absence of a default dead key, even a normal printing key can temporarily be altered to function as a dead key by simultaneously holding down another modifier key (typically AltGr or Option key). In Microsoft Word (and in most other text-input fields), using the Control key with a key that usually resembles the diacritic (e.g. ^ for a circumflex) acts as a dead key. On the Macintosh, many keyboard layouts employ dead keys. For example, when are first pressed simultaneously and then followed by , the result is â. On a Macintosh, pressing one of these Option-key combinations creates the accent and highlights it, then the final character appears when the key for the base character is pressed.
However, some accented Latin letters less common in the major Western European languages, such as ŵ (used in Welsh language) or š (used in many languages), cannot be typed with the "US" layout. For users with US keyboards, access to many more diacritics is provided by the "US International" keyboard layout. Users with UK keyboards have a similar option with UK extended layout; many other national settings are available.
In AmigaOS, dead keys are generated by pressing in combination with (acute), (grave), (circumflex), (tilde) or (trema) (e.g., the combination followed by the key generates á and followed by generates é, whereas followed by generates à and followed by generates è).
|
|